package com.climber;

import com.climber.controller.BookController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Hello world!
 *
 */
public class App {

    public static void main( String[] args )
    {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        BookController bookController=(BookController)applicationContext.getBean("bookController");
//        bookController.findBookById(3);
//        bookController.addBook();
        bookController.findAllBook();
    }
}
